From bf976cc1e4d3d48e1538f12ac4833398e5c3961b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Tue, 13 Jul 2010 03:05:58 +0200 Subject: [PATCH] Use accessor functions to access GtkStatusbar --- modules/other/gail/gailstatusbar.c | 5 ++++- tests/testgtk.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/other/gail/gailstatusbar.c b/modules/other/gail/gailstatusbar.c index 2b7c63f8ee..d3ebeead59 100644 --- a/modules/other/gail/gailstatusbar.c +++ b/modules/other/gail/gailstatusbar.c @@ -629,5 +629,8 @@ gail_statusbar_get_character_at_offset (AtkText *text, static GtkWidget* get_label_from_statusbar (GtkWidget *statusbar) { - return GTK_STATUSBAR (statusbar)->label; + GtkWidget *message_area; + + message_area = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar)); + return gtk_bin_get_child (GTK_BIN (message_area)); } diff --git a/tests/testgtk.c b/tests/testgtk.c index 72269ed372..c38c6d45ed 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -1627,7 +1627,7 @@ statusbar_popped (GtkStatusbar *statusbar, guint context_id, const gchar *text) { - if (!statusbar->messages) + if (!text) statusbar_counter = 1; } -- 2.30.2